<h3>List Konsumen</h3>

<table class="data">
    <tr class="data">
        <th class="data" width="30px">No</th>
        <th class="data">Nama</th>
        <th class="data">Username</th>
        <th class="data">Email</th>
        <th class="data">Status</th>
        <th class="data" width="75px">Aksi</th>
    </tr>
    <?php foreach ($results as $costumer): ?>
        <tr class="data">
            <td class="data" width="30px"><?php echo $i ?></td>
            <td class="data"><?php echo $costumer->name ?></td>
            <td class="data"><?php echo $costumer->username ?></td>
            <td class="data"><?php echo $costumer->email ?></td>
            <td class="data">
        <center>
            <?php echo get_status($costumer->status); ?> &nbsp;&nbsp; 
        </center>    
    </td>
    <td class="data" width="75px">
    <center>
        <?php foreach ($access->result() as $a): ?>
                <a href="<?php echo base_url() ?>costumer_lists/show/<?php echo $costumer->id ?>"><img src="<?php echo base_url() ?>img/detail.png"></a>&nbsp;&nbsp;
            <?php echo get_delete($a->list_delete, 'costumer_lists/delete/', $costumer->id) ?>&nbsp;&nbsp;
        <?php endforeach; ?>
    </center>
    <?php $i++ ?>
<?php endforeach ?>
</td>
</tr>

</table>
<p><?php echo $links; ?></p>
